package com.wzh.glsc.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author xiaoming
 * @ClassName:@{NAME}
 * @Description:
 * @date:@{DATE}@{TIME}
 */
//从配置文件properties中读取glsc.thread开头的数据
// 配置了这个可以在别的方法调用时能有代码提示
@ConfigurationProperties(prefix = "glsc.thread")
@Component//注入容器中
@Data
public class ThreadPoolConfigProperties {

    private Integer coreSize; //线程核心的大小
    private Integer maxSize;    //线程的最大线程数
    private Integer keepAliveTime; //线程空闲多久后释放掉线程

}
